﻿using System;
using UnityEngine;

// Token: 0x020003AD RID: 941
public abstract class ModalUI : MonoBehaviour
{
	// Token: 0x06001770 RID: 6000 RVA: 0x0009C000 File Offset: 0x0009A200
	protected virtual void Awake()
	{
		this.GameCtrl = UnityEngine.Object.FindObjectOfType<GameControl>();
	}

	// Token: 0x06001771 RID: 6001 RVA: 0x0009C010 File Offset: 0x0009A210
	protected void End()
	{
		this.GameCtrl.OnModelClose();
		UnityEngine.Object.Destroy(base.gameObject);
	}

	// Token: 0x04001B1D RID: 6941
	protected GameControl GameCtrl;
}
